﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Data;
namespace WsdShop.Model
{
    //Product
    public class Product:Entity
    {
        /// <summary>
        /// Id
        /// </summary>
        public int Id { get; set; }
        /// <summary>
        /// 产品名称
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 产品SKU
        /// </summary>
        public string Sku { get; set; }
        /// <summary>
        /// 产品主图
        /// </summary>
        public string ImgUrl { get; set; }
        /// <summary>
        /// 是否上架
        /// </summary>
        public bool IsDisplay { get; set; }
        /// <summary>
        /// 是否推荐
        /// </summary>
        public bool IsRecommend { get; set; }
        /// <summary>
        /// 产品描述
        /// </summary>
        public string Description { get; set; }
        /// <summary>
        /// 产品详情
        /// </summary>
        public string Detail { get; set; }
        /// <summary>
        /// 收藏量
        /// </summary>
        public int FavoriteCount { get; set; }
        /// <summary>
        /// 总销量
        /// </summary>
        public int SaleCount { get; set; }
        /// <summary>
        /// ImgUrls
        /// </summary>
        public string ImgUrls { get; set; }
        /// <summary>
        /// 分类ID
        /// </summary>
        public int CategoryId { get; set; }
        /// <summary>
        /// 总库存
        /// </summary>
        public int TotalStock { get; set; }
        /// <summary>
        /// 统一运费
        /// </summary>
        public decimal UniformFreight { get; set; }
        /// <summary>
        /// 运费模版ID
        /// </summary>
        public int FreightTemplateId { get; set; }
        /// <summary>
        /// 获得积分
        /// </summary>
        public int Points { get; set; }
        /// <summary>
        /// 是否支持积分抵现
        /// </summary>
        public bool IsAllowUsePoints { get; set; }
        /// <summary>
        /// 排序
        /// </summary>
        public int Sort { get; set; }
        /// <summary>
        /// 使用积分比例
        /// </summary>
        public decimal UsePointRate { get; set; }
        /// <summary>
        /// 市场价(取规格最高市场价)
        /// </summary>
        public decimal MarketPrice { get; set; }
        /// <summary>
        /// 售价（取规格最低售价）
        /// </summary>
        public decimal Price { get; set; }
        /// <summary>
        /// 是否使用优惠券
        /// </summary>
        public bool IsAllowUseCoupon { get; set; }
        /// <summary>
        /// 规格类型ID
        /// </summary>
        public int SpecTypeId { get; set; }

        private bool isConfigArea = false;

        /// <summary>
        /// 是否配置区域
        /// </summary>
        public bool IsConfigArea { get { return isConfigArea; } set { isConfigArea = value; } }
    }
}

